﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PoC.Shopkeeper.EntityModel;

namespace PoC.Shopkeeper.Domain.Models
{
    public class NewsModel
    {
        public NewsModel(string newsId, string newsContent, DateTime publishedDate)
        {
            this.NewsId = newsId;
            this.NewsContent = newsContent;
            this.PublishedDate = publishedDate;
        }

        public NewsModel(News newsEntity)
        {
            this.NewsId = newsEntity.NewsId;
            this.NewsContent = newsEntity.NewsContent;
            this.PublishedDate = newsEntity.PublishedDate;
        }

        public string NewsId { get; private set; }
        public string NewsContent { get; private set; }
        public DateTime PublishedDate { get; private set; }
    }
}
